package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.dto.BrandUpdateEnableDto;
import cn.tedu.csmall.product.pojo.entity.PmsBrand;
import cn.tedu.csmall.product.pojo.vo.BrandListItemVo;
import cn.tedu.csmall.product.pojo.vo.BrandStandardVo;

import java.util.List;

public interface BrandMapper {
    int insert(PmsBrand pmsAttribute);

    int insertBatch(List<PmsBrand> pmsAttributes);

    int deleteById(long l);

    int deleteByIds(Long[] l);

    int update(PmsBrand pmsAttribute);

    int count();

    BrandStandardVo selectById(Long id);

    List<BrandListItemVo> list();

    int countByName(String name);

    int countByNameNotById(Long id,String name);

    BrandStandardVo getStandardById(Long id);

    void updateEnableBuId(BrandUpdateEnableDto adminUpdateDto);
}
